package com.chuangjiangx.member.basic.ddd.domain.model;


import java.util.Objects;

public enum CustomEnable {
    DISABLE("禁用", (byte)0),
    ENABLE("启用", (byte)1);

    public final String name;
    public final byte value;

    private CustomEnable(String name, byte value) {
        this.name = name;
        this.value = value;
    }

    public static CustomEnable getEnable(byte value) {
        CustomEnable[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            CustomEnable enable = var1[var3];
            if (Objects.equals(enable.value, value)) {
                return enable;
            }
        }

        return null;
    }
}
